﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iS3.DAL
{
    //用于处理数据规则存储的引擎接口
    public interface IExternalStorageEngine
    {
        //判断该参数对应的表格是否已经存在
        bool checkIfExist(string param);

        string getExtTableName<TEntity>(TEntity model) where TEntity:DGBase,new();

        Dictionary<string, List<TEntity> > getExtTableName<TEntity>(List<TEntity> models) where TEntity : DGBase, new();
        List<string> getAllExtTableName();
        List<string> getAllExtTableNameByParam(string param);

        string getExtTableName(string param);


        List<string> getRelativeTableName(string param);

        ExternalStorageRecord recordCreatingTable(string tableName);
    }
}
